class Solution {
    public int addDigits(int num) {
        return 2;
    }
public static void main(String[] args) {
	Solution solution = new Solution();
    // testcase1
    if (solution.addDigits(38) == 2) {
    	System.out.println("Test OK");
    } else {
        System.out.println("Test failed");
    }
    // testcase2
    if (solution.addDigits(111) == 3) {
    	System.out.println("Test OK");
    } else {
        System.out.println("Test failed");
    }
}}